package org.jeecg.modules.order.service.impl;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.constant.enums.MainErrorEnum;
import org.jeecg.modules.engineer.entity.MtEngineer;
import org.jeecg.modules.engineer.mapper.MtEngineerMapper;
import org.jeecg.modules.order.entity.MtRepairDispatch;
import org.jeecg.modules.order.entity.MtRepairOrder;
import org.jeecg.modules.order.entity.MtRepairSchedule;
import org.jeecg.modules.order.mapper.MtRepairDispatchMapper;
import org.jeecg.modules.order.mapper.MtRepairOrderMapper;
import org.jeecg.modules.order.service.IMtRepairDispatchService;
import org.jeecg.wechat.request.WxRepairDispatchRequest;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description: 工单派工
 * @Author: jeecg-boot
 * @Date: 2022-09-19
 * @Version: V1.0
 */
@Service
public class MtRepairDispatchServiceImpl extends ServiceImpl<MtRepairDispatchMapper, MtRepairDispatch> implements IMtRepairDispatchService {

    @Autowired
    private MtRepairDispatchMapper mtRepairDispatchMapper;

    @Override
    public List<MtRepairDispatch> selectByMainId(String mainId) {
        return mtRepairDispatchMapper.selectByMainId(mainId);
    }


}
